//透過座標位置指定文字游標位置
//需要提供 1. {$posx} =X軸值 2. {$posy} =Y軸值

function focusEle(x,y){
    var ele = document.elementFromPoint(x,y);
    var range = document.createRange();
    range.setStartAfter(ele);
    var sel = window.getSelection();
    sel.removeAllRanges();
    sel.addRange(range);
}
focusEle({$posx},{$posy});
